/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

 

#ifndef SopModel_h
#define SopModel_h

@interface VerifySecurityTokenInfo :NSObject

/// 操作action serviceName:actionName
@property (strong,nonatomic,nonnull)  NSString*  action;


-(id) initWithAction:(NSString*) action;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface VerificationCodeInfo :NSObject

/// 操作action serviceName:actionName
@property (strong,nonatomic,nonnull)  NSString*  action;

/// 验证dcd 方式：mobile-1  email-2
@property (strong,nonatomic,nonnull)  NSNumber*  type;


-(id) initWithAction:(NSString*) action
    type:(NSNumber*)type;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface GetSecurityTokenInfo :NSObject

/// 操作保护验证方式：1-短信,2-邮箱,3-MFA
@property (strong,nonatomic,nonnull)  NSNumber*  type;

/// 验证码
@property (strong,nonatomic,nonnull)  NSString*  code;

/// 操作action serviceName:actionName
@property (strong,nonatomic,nonnull)  NSString*  action;

/// 令牌有效期，单位秒，OpenAPI第三方MFA方式验证有效，默认短信、邮箱token有效期300秒，MFA有效期30秒
@property (strong,nonatomic,nonnull)  NSNumber*  durationSeconds;


-(id) initWithType:(NSNumber*) type
    code:(NSString*)code
    action:(NSString*)action
    durationSeconds:(NSNumber*)durationSeconds;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end

#endif /* SopModel_h */
